package interview.other;
public final class FinalizeTest {
	    // 重写finalize()方法
	    protected void finalize() throws Throwable {
	        System.out.println("执行了finalize()方法");
	    }

	    public static void main(String[] args) {
	        FinalizeTest ft = new FinalizeTest();
	        ft = null;
	        System.gc();   	}
	}
